///****************************************************************************
//*****************************************************************************
//								By JJ
//*****************************************************************************
//****************************************************************************/
//#ifndef __TOUCH_H
//#define __TOUCH_H
//
//#define NUM_samples 4
//
///*Type A I/O Control registers */
//#define IO_Pull_up 	  0x0|(0x2<<3)|(0x5<<5)		//Gpio pull-up
//#define ADC_In 	     (0x1)|(0x1<<3)				//ADC Input
//#define IO_No_UD     (0x0)|(0x0<<3)|(0x5<<5)	//Gpio no pull-up	and pull-down
//
//#define XR 12
//#define XL 23
//#define YU 25
//#define YD 24
//
//extern unsigned short x_vaule, y_vaule;
//extern void touch_init(void);
//extern void config_pins_x(void);
//extern void config_pins_y(void);
//extern unsigned short read_ch_x(void);
//extern unsigned short read_ch_y(void);
//extern unsigned char tmp;
//
//
//#endif



/****************************************************************************
*****************************************************************************
								By JJ
*****************************************************************************
****************************************************************************/
#ifndef __TOUCH_H
#define __TOUCH_H

#define NUM_samples 4

/*Type A I/O Control registers */
#define IO_Pull_up 	  0x0|(0x2<<3)|(0x5<<5)		//Gpio pull-up
#define ADC_In 	     (0x1)|(0x1<<3)				//ADC Input
#define IO_No_UD     (0x0)|(0x0<<3)|(0x5<<5)	//Gpio no pull-up	and pull-down

#define XR 23  //25
#define XL 25  //26
#define YU 26  //23
#define YD 24  //24

extern unsigned short x_vaule, y_vaule;
extern void touch_init(void);
extern void config_pins_x(void);
extern void config_pins_y(void);
extern unsigned short read_ch_x(void);
extern unsigned short read_ch_y(void);
extern unsigned char tmp;


#endif

